package com.mtnz.njk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Auther: 范保林
 * @Date: 2019\6\14 0014 14:28
 * @Description: njk 用户实体类
 */
@Data
@Table(name = "njk_user")
public class NjkUserEntity implements Serializable {
    @Id
    @Column(name = "user_id")
    private String userId;
    private String phone;
    private String password;
    private String salt;
    @Column(name = "nick_name")
    private String nickName;
    @Column(name = "create_time")
    private String createTime;
    @Column(name = "last_login")
    private String lastLogin;
    private String vip;
    private String status;
    @Column(name = "open_id")
    private String openId;
    @Column(name = "union_id")
    private String unionId;
    private String img;
    @Column(name = "phone_type")
    private String phoneType;
    private Integer integral;
    @Column(name = "total_integral")
    private Integer totalIntegral;
    private Double balance;
    @Column(name = "service_id")
    private String serviceId;
    @Column(name = "reality_name")
    private String realityName;
    @Column(name = "phone_status")
    private Integer phoneStatus;
    @Column(name = "shop_cover")
    private String shopCover;
    @Column(name = "shop_capacity")
    private String shopCapacity;
    @Column(name = "top_phone_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date topPhoneTime;
    @Column(name = "top_phone_result")
    private String topPhoneResult;
    private String remark;
    @Column(name = "client_id")
    private String clientId;

    @Transient
    private NjkUserInfoEntity userInfoEntity;
    @Transient
    private NjkUserAddressEntity userAddressEntity;
    @Transient
    private List<NjkUserCropEntity> userCropEntity;
    @Transient
    private NjkUserServiceEntity serviceEntity;


}